/*
 *    Copyright (c) 2018-2025, nart All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: nart
 */

package com.nai365.nart.member.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 钱包修改记录表
 *
 * @author baogs
 * @date 2022-07-07 09:47:26
 */
@Data
@TableName("ums_wallet_change")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "钱包修改记录表")
public class WalletChange extends Model<WalletChange> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="id")
    private Long id;

    /**
     * 用户id
     */
    @ApiModelProperty(value="用户id")
    private Long userId;

    /**
     * nice余额
     */
    @ApiModelProperty(value="nice余额")
    private BigDecimal nartValue;

    /**
     * rmb余额
     */
    @ApiModelProperty(value="rmb余额")
    private BigDecimal rmbValue;
    /**
     * 当前余额
     */
    @ApiModelProperty(value="当前余额")
    private BigDecimal currentBalance;

    /**
     * 谁操作的
     */
    @ApiModelProperty(value="谁操作的")
    private Long operateBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    private LocalDateTime updateTime;

    /**
     * order_sn
     */
    @ApiModelProperty(value="order_sn")
    private String orderSn;

    /**
     * 商品sku名字
     */
    @ApiModelProperty(value="商品sku名字")
    private String skuName;

    /**
     * 销售类型[0为系统发放，1为购买，2为销售，3为充值]
     */
    @ApiModelProperty(value="销售类型[0为系统发放，1为购买，2为销售，3为充值]")
    private Integer type;

	/**
	 * 来源用户id
	 */
	@ApiModelProperty(value="来源用户id")
	private Long fromUserId;
	/**
	 * 目标用户id
	 */
	@ApiModelProperty(value="目标用户id")
	private Long toUserId;
}
